<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib tagdir="/WEB-INF/tags" prefix="mvc" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; utf-8">
    <title><s:text name="menu.items" /> &mdash; <s:text name="application.name" /></title>
</head>
<body>

<mvc:h1 key="menu.items" />

<mvc:message />

<table>
    <tr>
        <td>${topMenuItem.name}</td>
        <td><a href="/admin/menu!edit?item.key=${topMenuItem.key.string}"><img class="icon_image" src="/resources/images/edit.png" title="<s:text name="menu.edit" />" /></a></td>
        <td>&nbsp;</td>
    </tr>
    <s:iterator value="menuItems" var="itm">
        <tr>
            <td>${itm.value}</td>
            <td><a href="/admin/menu!edit?item.key=${itm.key}"><img class="icon_image" src="/resources/images/edit.png" title="<s:text name="menu.edit" />" /></a></td>
            <td><a href="/admin/menu!delete?item.key=${itm.key}" onclick="return confirm('<s:text name="menu.delete.confirmation" />');"><img class="icon_image" src="/resources/images/remove.png" title="<s:text name="menu.delete" />" /></a></td>
        </tr>
    </s:iterator>
</table>
<p>
<a href="/admin/menu!create"><img class="icon_image" src="/resources/images/add.png" title="<s:text name="menu.create" />" /></a>
</p>

</body>
</html>